package com.ctgu.ImageRecognition.service.impl;

import com.ctgu.ImageRecognition.entity.Tag;
import com.ctgu.ImageRecognition.dao.TagDao;
import com.ctgu.ImageRecognition.service.TagService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * (Tag)表服务实现类
 *
 * @author 
 * @since 2023-07-05 18:31:03
 */
//@Service("tagService")
@Service
public class TagServiceImpl implements TagService {
    @Resource
    private TagDao tagDao;


    @Override
    public List<Tag> listTags() {
        return tagDao.selectList(null);
    }

    @Override
    public List<Tag> listTagAndPhoto() {
        return tagDao.selectTagOne();
    }

    @Override
    public Tag testTag() {
        return tagDao.selectByName(1,"人物");
    }
}
